angular.module('Controller')
.controller('QgyOrderDetailModalCtrl',($scope,urls,$localStorage,NgTableParams,commonUtil,cryptUtil,wfAlert,commonConstant,$http, $uibModalInstance, items)->
    $scope.type=type=items.type
    $scope.data=data=items.data
    if data.type==1
        $scope.modalTitle='租赁订单详情'
    else if data.type==2
        $scope.modalTitle='积分订单详情'
    else if data.type==3
        $scope.modalTitle='保洁订单详情'
    else
        $scope.modalTitle='订单详情'
    data.serviceTime=new Date(data.serviceTime) if data.serviceTime
    data.serviceEnd=new Date(data.serviceEnd) if data.serviceEnd
    data.createTime=new Date(data.createTime) if data.createTime
    data.payTime=new Date(data.payTime) if data.payTime
    $scope.cancel =()->
        $uibModalInstance.dismiss('cancel')
)